package Test.IO;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CopyText01 {
    public static void main(String[] args) throws IOException {
        FileReader in=new FileReader("/Users/jinnian/Desktop/emp.txt");
        FileWriter out=new FileWriter( "/Users/jinnian/Desktop/empcopy1.txt");

        int ch=0;
        while ((ch=in.read())!=-1){
            out.write(ch);
        }
        in.close();
        out.close();

    }
}
